﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LifeTree.DomainModel.Entities;

namespace LifeTree.DomainModel
{
    public class EntityFactory
    {
        public Task CreateTask(string text)
        {
            return new Task() 
            { 
                Text = text,
                Status = TaskStatuses.NotStarted,
                CreatedDate = DateTime.Now, 
                ModifiedDate = DateTime.Now 
            };
        }

        public Workbook CreateWorkBook(string name)
        {
            return new Workbook() { Name = name, Tasks = new List<Task>() };
        }
    }
}
